// 调整页面容器以适应260px宽的侧边栏
.pageContainer {
  display: flex;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

// 右侧内容容器可能需要调整
.contentContainer {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
}

// 空间Header样式 - 修改背景色与外部容器一致
.spaceHeader {
  padding: 16px 24px;
  margin-bottom: 16px;
  background-color: #fafaff; // 与主容器背景色一致

  h4 {
    margin: 0;
    font-weight: 500;
  }
}

// 空间内容区域
.spaceContentArea {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

// Tab容器部分
.tabsContainer {
  flex: 1;
  padding: 0 24px 24px;

  // 只针对当前容器中的ant-tabs应用样式
  :global(.ant-tabs) {
    margin: 0;
    padding: 0;
    width: 100%;
    text-align: left;
  }

  // Tab导航栏布局
  :global(.ant-tabs-nav) {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: none !important;

    &::before {
      display: none !important;
    }
  }

  // Tab列表左对齐
  :global(.ant-tabs-nav-wrap) {
    flex: initial !important;
  }

  // 按钮右对齐
  :global(.ant-tabs-extra-content) {
    flex: 0 0 auto !important;
    margin-left: auto !important;
  }

  // 移除下划线指示器
  :global(.ant-tabs-ink-bar) {
    display: none !important;
    opacity: 0 !important;
  }

  // 默认Tab样式
  :global(.ant-tabs-tab) {
    padding: 0 !important;
    margin: 0 24px 0 0 !important;
    border: none !important;
    background: transparent !important;
    font-weight: normal;
    color: rgba(18, 18, 18, 0.5) !important;

    &::after {
      display: none !important;
    }

    &:hover,
    &:focus {
      color: rgba(18, 18, 18, 0.5) !important;
      border: none !important;
    }
  }

  // 激活Tab样式 - 只保留文字加粗与颜色变化
  :global(.ant-tabs-tab-active) {
    font-weight: bold !important;
    color: #121212 !important;

    :global(.ant-tabs-tab-btn) {
      color: #121212 !important;
      font-weight: bold !important;
    }
  }

  // 防止Tab边框效果
  :global(.ant-tabs-content-holder) {
    border: none !important;
  }
}

// 自定义Tab图标和文字容器
.customTab {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tabIcon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

// 创建应用按钮样式
.createAppButton {
  background-color: #4551e5 !important;
  color: white !important;
  border: none !important;
  border-radius: 4px;
  font-weight: 500;
  outline: none !important;
  box-shadow: none !important;

  &:hover,
  &:focus {
    background-color: #3944c9 !important;
    color: white !important;
    outline: none !important;
    box-shadow: none !important;
  }

  &:active {
    outline: none !important;
    box-shadow: none !important;
  }
}

// 其他组件样式
.underDevelopmentContainer {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(100vh - 120px);
  width: 100%;
}

.developmentNotice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 500px;

  h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 12px;
  }
}

.noticeIcon {
  font-size: 48px;
  margin-bottom: 20px;
}

.noticeMessage {
  color: #666;
  font-size: 18px;
  margin: 10px 0;
}

.noticeDetails {
  margin-top: 20px;
  color: #888;
}

.emptyAppContainer {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(100vh - 120px);
  width: 100%;
}

.emptyAppContent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.emptyAppImage {
  max-width: 200px;
  margin-bottom: 16px;
}

.emptyAppText {
  color: rgba(0, 0, 0, 0.45);
  font-size: 16px;
}
